// HTTP路由配置
const httpRoutes = [
  {
    path: '/api/service1',
    target: process.env.SERVICE1_URL,
    name: 'Service 1'
  },
  {
    path: '/api/service2',
    target: process.env.SERVICE2_URL,
    name: 'Service 2'
  },
  {
    path: '/api/service3',
    target: process.env.SERVICE3_URL,
    name: 'Service 3'
  }
];

// WebSocket路由配置
// 调整WebSocket路由路径以/api/开头，保持一致性
const wsRoutes = [
  {
    path: '/ws/service1',
    target: process.env.WS_SERVICE1_URL,
    name: 'WebSocket Service 1'
  },
  {
    path: '/ws/service2',
    target: process.env.WS_SERVICE2_URL,
    name: 'WebSocket Service 2'
  },
  {
    path: '/ws/service3',
    target: process.env.WS_SERVICE3_URL,
    name: 'WebSocket Service 3'
  }
];

module.exports = {
  httpRoutes,
  wsRoutes
};